import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";

/** 产品分类列表 */
export const pro_cate_list = (data?: object) => {
  return http.request<any>("post", baseUrlApi("pro/pro_cate_list"), { data });
};

/** 产品分类添加 */
export const pro_cate_add = (data?: object) => {
  return http.request<any>("post", baseUrlApi("pro/pro_cate_add"), { data });
};

/** 产品分类修改 */
export const pro_cate_save = (data?: object) => {
  return http.request<any>("post", baseUrlApi("pro/pro_cate_save"), { data });
};

/** 产品分类删除 */
export const pro_cate_del = (data?: object) => {
  return http.request<any>("post", baseUrlApi("pro/pro_cate_del"), { data });
};

/** 产品列表 */
export const pro_list = (data?: object) => {
  return http.request<any>("post", baseUrlApi("pro/pro_list"), { data });
};

/** 产品添加 */
export const pro_add = (data?: object) => {
  return http.request<any>("post", baseUrlApi("pro/pro_add"), { data });
};

/** 产品修改 */
export const pro_save = (data?: object) => {
  return http.request<any>("post", baseUrlApi("pro/pro_save"), { data });
};

/** 产品删除 */
export const pro_del = (data?: object) => {
  return http.request<any>("post", baseUrlApi("pro/pro_del"), { data });
};